
<?php 
$store = Mage::app()->getStore();
$code  = $store->getCode();
$enable = Mage::getStoreConfig('bestseller/infinity_bestseller_config_enabled/active',$code);
?>
<?php if($enable == 1) { ?>
<div class="maintitle">
	<div class="titlemain"><?php echo Mage::getStoreConfig('bestseller/infinity_bestseller_config_enabled/title',$code); ?></div>
</div>
<?php echo $this->getLayout()->createBlock('bestseller/list')->setTemplate('catalog/product/list.phtml')->toHtml(); ?>
<?php }  ?>


